package com.fancy.controller;

import com.fancy.pojo.category.Singer;
import com.fancy.service.SingerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/singer")
public class SingerController {
    @Autowired
    SingerService singerService;

    @RequestMapping("/selectAllSinger")
    public List<Singer> selectAllSinger(){
        return singerService.selectAllSinger();
    }
}
